// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from '@/libs/request';

// 装备列表
export function getEquipmentList(data) {
  return request({
    url: 'taskEquipment/equipment',
    method: 'get',
    params: data,
  });
}

// 新增或编辑装备
export function setEquipment(data) {
  return request({
    url: data.url,
    method: data.method,
    data: data.datas,
  });
}

// 装备详情
export function getEquipmentDetail(id) {
  return request({
    url: `taskEquipment/equipment/${id}`,
    method: 'get',
  });
}
